package com.netcombine.freewill.controller;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.netcombine.freewill.constants.PageInfo;
import com.netcombine.freewill.manager.SessionManager;
import com.netcombine.freewill.vo.FreewillVo;

@Controller
public class GoodsController{

	private static final Logger logger = LoggerFactory.getLogger(GoodsController.class);	
	
	@RequestMapping(value = "/goods/list.do")
	public String goodslist(FreewillVo vo, HttpSession session, Model model){		
		
		if(!SessionManager.isLogin(session)){
			
			return PageInfo.GO_LOGIN;
		}		
			
			return "goods/list";
	}	
}